﻿using System;
using BehaviorModel.Block;
using Model.Block;

namespace BehaviorModel
{
    /// <summary>
    /// Factory of all blocks in QSM.
    /// </summary>
    public interface IBlockFactory
    {
        /// <summary>
        /// Creates new block of required type.
        /// </summary>
        /// <param name="type">Block type</param>
        /// <returns></returns>
        IBlock Create(BlockType type);
    }
}
